import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";

// 导入vant
import Vant from "vant";

// 加载组件库样式
import "vant/lib/index.css";

import VueAwesomeSwiper from "vue-awesome-swiper";
import "swiper/dist/css/swiper.css";

Vue.use(VueAwesomeSwiper);

// 全局注册vant中的组件
Vue.use(Vant);

//按需导入图片懒加载
import { Lazyload } from "vant";

Vue.use(Lazyload);

// 移动端适配 自动设置rem 基准值
import "amfe-flexible";

import "@/style/style.css";

Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
